import { Factory, Faker } from "@mikro-orm/seeder";
import * as dayjs from "dayjs";
import { randomInt } from "crypto";
import { title } from "./TitleGenerater";
import { OrderJobEnrolls } from "../entities/OrderJobEnrolls";

export class EnrollFactory extends Factory<OrderJobEnrolls> {
    model = OrderJobEnrolls;

    definition(faker: Faker): Partial<OrderJobEnrolls> {
        faker.setLocale('zh_CN')

        // const name = `${faker.unique(faker.name.lastName)}${faker.name.firstName()}`
        // const sex = faker.name.sex()

        return {
            name:faker.name.fullName(),
            phoneNumber:faker.phone.number(),
            
            //
        }
    }
}